package com.aios.action.user.iris;

import java.util.Locale;

import com.aios.entity.IrisData;

public class IrisUserEditAction extends AbstractIrisUserAction {

	private static final long serialVersionUID = 1L;

	public String execute() {
		setMode(Mode.EDIT);
		try {
			this.irisUser = findById();			
			this.editPopulate(Locale.JAPAN);
			
			irisData = irisUserService.findIrisData(irisUser.getId());
			if(irisData == null) {
				irisData = new IrisData();
			}

		} catch (Exception e) {
			e.printStackTrace();
			addActionError(getText("error.user.notfound"));
		}

		return SUCCESS;
	}

}
